/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trafficsim;

/**
 *
 * @author ~ecca //jc225759//
 */
public class Car {

    private int row;
    private int col;

    /**
     *constructor car has a row and a column
     * @param r
     * row
     * @param c
     * column
     */
    public Car(int r, int c) {
        row = r;
        col = c;
    }

    /**
     *
     * @return gets the row
     */
    public int getRow() {
        return row;
    }

    /**
     *
     * @param row sets the row
     */
    public void setRow(int row) {
        this.row = row;
    }

    /**
     *
     * @return gets the column
     */
    public int getCol() {
        return col;
    }

    /**
     *
     * @param col sets the column
     */
    public void setCol(int col) {
        this.col = col;
    }
}
